package com.fch.sdlibrary.mapper;


import com.fch.sdlibrary.entity.Book;
import com.fch.sdlibrary.entity.User;

public interface UserMapper {

    User findOneByUserName(String userId);

    void insertUser(User user);

    User queryUserNameById(String id);

    Book hasBorrow(String userId);

    int doBorrowFromUser(String bookId, String userId);

    int doRemand(String userId);
}
